﻿using ZL.WeChatCard.Entity.EasyQuery;
using ZL.WeChatCard.Service.Base;
using ZL.WeChatCard.Service.InterFace;

namespace ZL.WeChatCard.Service.EasyQuery
{
    public class EasyQueryService : ServiceBase, IEasyQueryService
    {
        public AccOprInfoResponse GetJfChanges(string openid)
        {
            var url = $"{server}/Api/EasyQuery/GetAccOprInfos?openid={openid}";
            var info = httpClient.HttpGet<AccOprInfoResponse>(url, Identity);
            return info;
        }

        public AccOprInfoResponse GetBalanceChanges(string openid)
        {
            var url = $"{server}/Api/EasyQuery/GetBalanceChanges?openid={openid}";
            var info = httpClient.HttpGet<AccOprInfoResponse>(url, Identity);
            return info;
        }

        public CustInfoResponse GetCustInfoResponse(string openid)
        {
            var url = $"{server}/Api/EasyQuery/GetCustInfo?openid={openid}";
            var info = httpClient.HttpGet<CustInfoResponse>(url, Identity);
            return info;
        }
    }
}